package com.zl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;

@ImportResource({ "classpath:spring/spring-all.xml" })
@Import(cn.hutool.extra.spring.SpringUtil.class)
@ComponentScan(basePackages={"com.zl"})
@EnableAsync
@EnableTransactionManagement
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)
public class ConsoleApplication{
    public static void main(String[] args) {
       SpringApplication.run(ConsoleApplication.class, args);
       System.out.println("\n"+
               "            _         \n" + 
               "           | |        \n" + 
               "   ___     | | __     \n" + 
               "  / _ \\    | |/ /    \n" + 
               " | (_) |   |   <      \n" + 
               "  \\___/    |_|\\_\\  \n" + 
               "                      \n" + 
               "");
    }
}
